package com.example.ysdt.service.impl;

import com.example.ysdt.Vo.CategoryVo;
import com.example.ysdt.entiey.Category;
import com.example.ysdt.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private com.example.ysdt.mapper.CategoryMapper categoryMapper;

    @Override
    public List<Category> queryCategory(CategoryVo categoryVo) {
        return categoryMapper.queryCategory(categoryVo);
    }

    @Override
    public void createCategory(Category category) {categoryMapper.createCategory(category); }

    @Override
    public void deleteCategory(CategoryVo categoryVo) {
        categoryMapper.deleteCategory(categoryVo);
    }
}
